# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-maguro
pkgver=3
pkgrel=5
pkgdesc="Google Galaxy Nexus (GSM)"
url="https://postmarketos.org"
arch="armv7"
license="MIT"
depends="postmarketos-base linux-samsung-maguro mkbootimg mesa-dri-swrast"
makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
source="deviceinfo"
options="!check !archcheck"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Wifi firmware"
	depends="firmware-samsung-maguro"
	mkdir "$subpkgdir"
}

sha512sums="34656eb8052535c5a6e844b8d17ba4c5c2a29216b13aaa3bd7e9cfc81ed6a55e8f1d4608bb187f8296ba6aff6ea9313392bcab305d22716d73010088386e7ca8  deviceinfo"
